import request from "../http/axios";
import qs from "qs";

export function getInit() {
  return request({
    url: "/init",
    method: "get",
  });
}

export function hopper() {
  return request({
    url: "/hopper",
    method: "get",
  });
}

export function getHistoryChart(params) {
  return request({
    url: "/history",
    method: "post",
    params: params,
  });
}

export function getAlarm(params) {
  return request({
    url: "/alarm",
    method: "post",
    params: params,
  });
}

export function alarmList() {
  return request({
    url: "/init_alarm",
    method: "get",
  });
}

export function getMarkLine() {
  return request({
    url: "/AlarmValue",
    method: "get",
  });
}
